/**
 * Created by HYDN on 2020/6/19.
 */
const mongoose=require('mongoose');

function dbConnect(){
    mongoose.connect('mongodb://localhost:27017/shopponline');
    mongoose.connection.once('open', function (err) {
        if(err){
            console.log('Mongodb is not opening')
        }else {
            console.log('Mongodb is opening 619')
        }
    })
}
exports.dbConnect=dbConnect;